package org.openems.entity;

public class MarkerEntity extends NumericEntity {
    public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	private String iconFile = "";
    private Double yvalue = 0.0;
    private String text = "";
    
    @Override
	public boolean equals(Object obj) {
    	MarkerEntity newObj = (MarkerEntity)obj;
    	return super.equals(obj) && (this.iconFile.equals(newObj.iconFile) && this.yvalue.equals(newObj.yvalue)) && this.text.equals(newObj.text);
	}

	public Double getYvalue() {
		return yvalue;
	}

	public void setYvalue(Double yvalue) {
		this.yvalue = yvalue;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public MarkerEntity(Key key, String name, String iconFile, int decimal, Unit unit,
            Double min, Double max, boolean persisted) {
        super(key, name, decimal, unit, min, max, persisted);

        this.iconFile = iconFile;
    }

    public String getIconFile() {
        return iconFile;
    }

    public void setIconFile(String iconFile) {
        this.iconFile = iconFile;
    }
    
    @Override
    protected MarkerEntity clone() {
        return  (MarkerEntity)super.clone();
    }

    @Override
    public Entity getClone() {
        return clone();
    }

}
